﻿#ifndef PRINTSETTINGWIDGET_H
#define PRINTSETTINGWIDGET_H

#include <QDialog>
#include "printsetting.h"
#include <QComboBox>

namespace Ui {
class PrintSettingWidget;
}

class PrintSettingWidget : public QDialog
{
    Q_OBJECT

public:
    explicit PrintSettingWidget(QWidget *parent = nullptr);
    ~PrintSettingWidget();

    void setSettingKey(QString settingKey);

    PrintSetting* getPrintSetting();
private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonSave_clicked();

    void on_comboBoxHeaderItem1_currentIndexChanged(int index);

    void on_comboBoxHeaderItem2_currentIndexChanged(int index);

    void on_comboBoxHeaderItem3_currentIndexChanged(int index);

    void on_comboBoxHeaderItem4_currentIndexChanged(int index);

    void on_comboBoxHeaderItem5_currentIndexChanged(int index);

    void on_comboBoxHeaderItem6_currentIndexChanged(int index);

    void on_comboBoxHeaderItem7_currentIndexChanged(int index);

    void on_comboBoxHeaderItem8_currentIndexChanged(int index);

    void on_comboBoxHeaderItem9_currentIndexChanged(int index);

    void on_comboBoxHeaderItem10_currentIndexChanged(int index);

    void on_comboBoxTailItem1_currentIndexChanged(int index);

    void on_comboBoxTailItem2_currentIndexChanged(int index);

    void on_comboBoxTailItem3_currentIndexChanged(int index);

    void on_comboBoxTailItem4_currentIndexChanged(int index);

    void on_comboBoxTailItem5_currentIndexChanged(int index);

    void on_comboBoxTailItem6_currentIndexChanged(int index);

    void on_comboBoxTailItem7_currentIndexChanged(int index);

    void on_comboBoxTailItem8_currentIndexChanged(int index);

    void on_comboBoxTailItem9_currentIndexChanged(int index);

    void on_comboBoxTailItem10_currentIndexChanged(int index);

private:
    QString getComboboxValue(QComboBox *combox);

    Ui::PrintSettingWidget *ui;

    PrintSetting printSetting;
};

#endif // PRINTSETTINGWIDGET_H
